package com.xuecheng.framework.exception;

import com.xuecheng.framework.model.response.ResultCode;

/*
 * 自定义异常
 */
public class CustomException extends RuntimeException{

    private static final long serialVersionUID = 1L;
   
    //错误代码
    ResultCode resultCode; 
    
    //构造方法
    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
    
    //获取错误代码
    public ResultCode getResultCode() {
        return resultCode;
    }

}
